
<template>
	<view class="container">
		<view class="tips">
			<img src="/static/yard.png" alt="" srcset="">
			<text>提交评价或建议，鼓励骑手和商家做得更好～</text>
		</view>
		<view class="commend">
			<view class="tilte">
				<text>您对商家/菜品满意吗？</text>
				<view class="title_submit">
					<u-checkbox @change="checkbox_change" v-model="commend_list.checked" name="s"
						shape="circle">匿名提交</u-checkbox>
				</view>
			</view>
			<view class="content">
				<img :src="commend_list.img_url" alt="" srcset="">
				<text>{{commend_list.text}}</text>
			</view>
			<view class="rate">
				<text>总分</text>
				<u-rate :count="5" gutter="10" size="36" :current="commend_list.current_counts.current1"></u-rate>
				<text class="satisfaction">{{commend_list.satisfactions.satisfa1}}</text>
			</view>
			<view class="rate space">
				<text class="text2">总分</text>
				<u-rate :count="5" gutter="13" :current="commend_list.current_counts.current2"></u-rate>
				<text class="satisfaction1">{{commend_list.satisfactions.satisfa2}}</text>
			</view>
			<view class="rate">
				<text class="text3">总分</text>
				<u-rate :count="5" gutter="13" :current="commend_list.current_counts.current3"></u-rate>
				<text class="satisfaction2">{{commend_list.satisfactions.satisfa3}}</text>
			</view>
			<view class="upload">
				<textarea class="textarea" placeholder-class="placeholder" v-model="commend_list.content" cols="30"
					rows="5" placeholder="说说口味怎么样，给大家参考"></textarea>
				<view class="area">
					<view class="upload_event">
						<view class="upload_event_img" @click="upload_img">
							<img src="/static/camera.png" alt="">
							<text>添加图片</text>
						</view>
					</view>
					<view class="upload_event">
						<view class="upload_event_img" @click="upload_audio">
							<img src="/static/audio.png" alt="">
							<text>上传视频</text>
						</view>
					</view>
				</view>
			</view>
			<view class="praise">
				<view class="praise_left">
					<img :src="commend_list.img_url2" alt="" srcset="">
					<text>四人自助牛排海鲜套餐</text>
				</view>
				<view class="praise_right">
					<img src="/static/zan2.png" alt="">
					<text style="margin-right: 24rpx;">踩</text>
					<img src="/static/zan.png" alt="">
					<text>赞</text>
				</view>
			</view>
		</view>
		<button type="default" class="btn" @click="submit">提交</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				commend_list: {
					img_url: "/static/order_commend.png",
					img_url2: "/static/eat.png",
					text: "阿里与艾德炭烤麻里牛排海鲜（观音桥店）",
					checked: false,
					current_counts: {
						current1: 5,
						current2: 5,
						current3: 5,
					},
					satisfactions: {
						satisfa1: '非常满意',
						satisfa2: '非常满意',
						satisfa3: '非常满意',
					},
					content: ''

				},
			}
		},
		methods: {
			checkbox_change(e) {
				console.log(e);
			},
			submit() {},

			upload_img() {
				console.log("upload_img");
			},
			upload_audio() {
				console.log("upload_audio");
			},
		}
	}
</script>

<style lang="scss">
	.container {
		background: #F6F6F6;
		height: 1624rpx;

		.tips {
			display: flex;
			align-items: center;
			font-size: 22rpx;
			padding: 16rpx 34rpx;
			background-color: #FCF9E8;
			line-height: 72rpx;
			color: #FF8439;
			margin-bottom: 40rpx;

			img {
				width: 36rpx;
				height: 42rpx;
				margin-right: 12rpx;
			}
		}

		.commend {
			width: 694rpx;
			height: 920rpx;
			margin: 0 28rpx 64rpx 28rpx;
			background-color: #fff;
			border-radius: 12rpx;
			padding: 24rpx 36rpx 30rpx 30rpx;

			.tilte {
				display: flex;
				justify-content: space-between;

				text {
					font-size: 32rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: bold;
					color: #1F1F1F;
					line-height: 44rpx;
					letter-spacing: 1px;
				}

				.radio {
					height: 32rpx;
				}

				.title_submit {
					/deep/ .u-checkbox__label {
						font-size: 28rpx;
						color: #616161;
					}
				}

			}

			.content {
				margin: 34rpx 0;
				display: flex;
				align-items: center;

				img {
					width: 90rpx;
					height: 90rpx;
					margin-right: 12rpx;
				}

				text {
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #121212;
					line-height: 34rpx;
				}
			}

			.rate {
				text {
					font-size: 26rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: bold;
					color: #121212;
					line-height: 36rpx;
					margin-right: 16rpx;
				}

				.text2 {
					font-size: 24rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 400;
					color: #616161;
					line-height: 36rpx;
					margin-right: 20rpx;
				}

				.text3 {
					font-size: 24rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					color: #616161;
					font-weight: 400;
					line-height: 36rpx;
					margin-right: 20rpx;
				}

				.satisfaction {
					margin-left: 42rpx;
					font-size: 26rpx;
					color: #121212;
					font-weight: bold;
				}

				.satisfaction1 {
					margin-left: 42rpx;
					font-size: 24rpx;
					font-weight: 400;
					color: #616161;
				}

				.satisfaction2 {
					margin-left: 42rpx;
					font-size: 24rpx;
					font-weight: 400;
					color: #616161;
				}
			}

			.space {
				margin: 34rpx 0;
			}

			.upload {

				height: 328rpx;
				background: #FFFFFF;
				border-radius: 16rpx;
				background: #F6F6F6;
				margin-top: 42rpx;
				margin-bottom: 40rpx;
				padding: 20rpx 0rpx 14rpx 15rpx;

				.textarea {
					height: 130rpx;
				}

				.upload_event {
					display: flex;
					justify-content: center;
					align-items: center;
					margin-right: 16rpx;
					width: 152rpx;
					height: 152rpx;
					border: 1rpx dashed #BABABA;

					.upload_event_img {
						display: flex;
						flex-direction: column;
						align-items: center;

						img {
							margin-bottom: 10rpx;
						}

					}

				}

				.area {
					display: flex;
				}

				.placeholder {
					font-size: 26rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #BABABA;
					line-height: 36rpx;
				}
			}

			.praise {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.praise_left {
					display: flex;
					align-items: center;
					font-size: 26rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #676767;
					line-height: 36rpx;

					img {
						height: 72rpx;
						height: 72rpx;
						margin-right: 12rpx;
					}
				}

				.praise_right {
					display: flex;
					align-items: center;

					img {
						margin-right: 12rpx;
					}

					text {
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #676767;
						line-height: 34rpx;
					}
				}
			}
		}


		.btn {
			width: 620rpx;
			height: 78rpx;
			background: #F43F5E;
			border-radius: 39rpx;
			color: #fff;
			font-size: 30rpx;
		}
	}
</style>